package com.love.marriage.userInfo.service;

import com.love.marriage.common.vo.Result;
import com.love.marriage.userInfo.vo.UserVo;

import javax.servlet.http.HttpServletRequest;

public interface LoginService {

    UserVo login(HttpServletRequest request, String username, String password, Boolean isRemember, Long instrId, String source) throws Exception;

    UserVo loginPhone(HttpServletRequest request, String phone, String code, Boolean isRemember, String weChatCode, Long instrId, String source) throws Exception;

    UserVo loginWechat(HttpServletRequest request, String code, Boolean isRemember, String phone, Long instrId, String source) throws Exception;

    Result<Boolean> logout(HttpServletRequest request);

    Boolean authToken(String token);
}
